package cn.tedu.jsd2207csmall.passport.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AdminAddNewDTO implements Serializable {

    @ApiModelProperty(value = "用户名",required = true)
    @NotNull(message = "添加管理员失败,必须提交用户名!")
    private String username;

    @ApiModelProperty(value = "密码",required = true)
    private String password;
    @ApiModelProperty(value = "昵称",required = true)
    private String nickname;
    @ApiModelProperty(value = "头像路径")
    private String avatar;
    @ApiModelProperty(value = "电话号码",required = true)
    private String phone;
    @ApiModelProperty(value = "邮箱",required = true)
    private String email;
    @ApiModelProperty(value = "简介",required = true)
    private String description;
    @ApiModelProperty(value = "是否启用")
    private Integer enable;

    /**
     * 角色数组
     */
    private Long[] roleIds;


}
